package com.spzx.manager.service;

import com.github.pagehelper.PageInfo;
import com.spzx.model.dto.system.SysRoleDto;
import com.spzx.model.entity.system.SysRole;

import java.util.Map;

/**
 * Project: spzx-parent
 * Package: com.spzx.manager.service
 * Version: 1.0
 * <p>
 * Created by  wangjiaxin  on 2023/12/11 22:06
 */
public interface SysRoleService {
    //角色添加
    void saveSysRole(SysRole sysRole);

    //角色查找
    PageInfo<SysRole> findByPage(SysRoleDto sysRoleDto, Integer pageNum, Integer pageSize);

    //角色修改
    void updateSysRole(SysRole sysRole);

    //角色删除
    void deleteById(Long roleId);

    //查询所有用户角色
    Map<String, Object> findAllRoles(Long userId);
}
